namespace Cos.Core.NHibernate.Mapping
{
    using FluentNHibernate.Mapping;

    public class ArticleCultureMap : ClassMap<ArticleCultureDataModel>
    {
        public ArticleCultureMap()
        {
            this.Table("ArticleCulture");
            this.LazyLoad();
            this.Id(x => x.Id).GeneratedBy.Native().Column("Id");
            this.Map(x => x.ArticleId).Column("ArticleId");
            this.Map(x => x.CultureCode).Not.Nullable().Column("CultureCode");
            this.Map(x => x.LastModified).Not.Nullable().Column("LastModified");
            this.Map(x => x.Title).Column("Title");
            this.Map(x => x.Teaser).Column("Teaser");
            this.Map(x => x.Text).Column("Text");
            this.Map(x => x.Author).Column("Author");
            this.Map(x => x.AuthorId).Column("AuthorId");
            this.Map(x => x.AuthorFirstName).Column("AuthorFirstName");
            this.Map(x => x.AuthorLastName).Column("AuthorLastName");
        }
    }
}
